<%@ page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <title>增加图书</title>
    <script src="../bootstrap/js/jquery-3.2.1.min.js"></script>
    <link rel="stylesheet" href="../bootstrap/css/bootstrap.min.css">
    <style>
        .table th, .table td {
            text-align: center;
            height: 30px;
        }
    </style>

</head>
<body>

<div style="height:75px;line-height:75px;font-size:25px;vertical-align: middle;text-align: center" class="bg-primary">添加图书</div>

<div class="row" style="padding:10px 10px">

    <!-- 左导航栏 -->
    <%@include file="../nav.jsp"%>

    <!-- 添加图书信息 -->
    <div class="col-md-10" style="padding-top:10px">
        <form class="form-horizontal" role="form" action="/BookServlet?method=add" method="post">
            <div class="form-group">
                <label  class="col-sm-2 control-label">图书名称</label>
                <div class="col-sm-7">
                    <input  class="form-control"  placeholder="请输入用书名" name="bookname" >
                </div>
            </div>
            <div class="form-group">
                <label  class="col-sm-2 control-label">作者</label>
                <div class="col-sm-7">
                    <input  class="form-control"  placeholder="请输入作者" name="author" >
                </div>
            </div>
            <div class="form-group">
                <label  class="col-sm-2 control-label" >出版社</label>
                <div class="col-sm-7">
                    <input  class="form-control"  placeholder="请输入出版社" name="publisher">
                </div>
            </div>
            <div class="form-group">
                <label  class="col-sm-2 control-label">价格</label>
                <div class="col-sm-7">
                    <input  class="form-control"  placeholder="请输入价格" name="price" >
                </div>
            </div>
            <div class="form-group">
                <label  class="col-sm-2 control-label" >图片地址</label>
                <div class="col-sm-7">
                    <input  class="form-control"  placeholder="请输入图片地址" name="url">
                </div>
            </div>
            <div class="form-group">
                <label  class="col-sm-2 control-label" >折扣</label>
                <div class="col-sm-7">
                    <input  class="form-control"  placeholder="请输入折扣" name="discount">
                </div>
            </div>
            <div class="form-group">
                <div class="col-sm-offset-2 col-sm-10">
                    <button type="reset" class="btn btn-default">重置</button>
                    <button type="submit" class="btn btn-default">确定</button>
                </div>
            </div>
        </form>

    </div>
</div>
</body>
</html>